home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 43 / Mac Magazin and MacEasy Magazine CD - Issue 43.iso / Software / Mobiles Büro / Newton / Newton Entwickler / DIL 2.0 Sample Code ƒ / Mini-MetaData-1 / Windows Source / INTERFAC.H < prev    next >
C/C++ Source or Header  |  1996-10-11  |  3KB  |  78 lines

  1. /*
  2.     File:        INTERFAC.h
  3.  
  4.     Contains:    Definitions for INTERFAC.c
  5.  
  6.     Written by:    Ryan Robertson
  7.  
  8.     Copyright:    © 1996 by Apple Computer, Inc.  All rights reserved.
  9.  
  10. */
  11.  
  12. #ifndef __INTERFACE_H
  13. #define __INTERFACE_H
  14.   
  15. #include "DILCPIPE.H"
  16.   
  17. #define kApplicationName         "Mini-MetaData"
  18.     
  19. //--------------------------------------------------------------------------------------------------------------
  20. // MENU DEFINITIONS
  21. //--------------------------------------------------------------------------------------------------------------
  22.  
  23. #define IDM_EXIT                11
  24.  
  25. #define IDM_CONNECT                21
  26.  
  27. #define IDM_ABOUT               31
  28.  
  29.  
  30. //--------------------------------------------------------------------------------------------------------------
  31. // DIALOG DEFINITIONS
  32. //--------------------------------------------------------------------------------------------------------------
  33.  
  34. #define IDD_DIALOG1             101
  35. #define IDC_EDIT1               1000
  36.  
  37.  
  38. //--------------------------------------------------------------------------------------------------------------
  39. // STRING DEFINITIONS
  40. //--------------------------------------------------------------------------------------------------------------
  41.  
  42. #define kInitPipeErrorString        "There was an error initializing the pipe."
  43. #define kConnectErrorString            "There was an error waiting for the connection.  Check your cables and try again."
  44. #define kAcceptFailedString            "The connection was not accepted."
  45.  
  46. #define kWrongAppString                "The wrong application is trying to connect."
  47. #define kBufferReadErrorString         "There was a problem receiving data.  The connection has been closed."
  48. #define kBufferWriteErrorString        "There was a problem sending data.  The connection has been closed."
  49. #define kNewtonCancelledString        "The Newton has cancelled the transaction.  The connection has been closed."
  50. #define kFileWriteErrorString        "There was a problem writing to the file.  The connection has been closed."
  51. #define kNoMemoryString                "There was a problem allocating the buffer.  The connection has been closed."
  52. #define kDownloadWasSuccessful        "The export was successful."
  53.  
  54. #define kCDILInitErrorString        "There was an error initializing the CDIL library."
  55. #define kAlreadyConnectedString        "You are already connected or waiting for a connection."
  56.  
  57. //--------------------------------------------------------------------------------------------------------------
  58. // ERROR DEFINITIONS
  59. //--------------------------------------------------------------------------------------------------------------
  60.  
  61. #define noErr                    0
  62. #define kError_InitFailed        129
  63.     
  64. //--------------------------------------------------------------------------------------------------------------
  65. // INTERFACE PROTOTYPES
  66. //--------------------------------------------------------------------------------------------------------------
  67.  
  68. void        FAR PASCAL        ConductErrorDialog( char* errorString );
  69. long        FAR PASCAL        InitializePipe();
  70. Boolean        FAR PASCAL         AboutDlgProc(HWND hDlg, UINT message, UINT wParam, LONG lParam);
  71. long        FAR PASCAL         CreateNOpenFile( char* fileName, Boolean* unused, HFILE* fileRefPtr );
  72. long        FAR PASCAL         WriteToFile( HFILE fileRef, long* length, char* buffer );
  73. HFILE        FAR PASCAL         UpdateNCloseFile( HFILE fileRef, Boolean* unused );
  74. long        FAR PASCAL        DoTerminate( void );
  75. long        FAR PASCAL         WndProc (HWND hwnd, UINT message, UINT wParam, LONG lParam);
  76.  
  77. #endif
  78.